package br.com.escolaespacocrianca.fineec.component;

import br.com.escolaespacocrianca.fineec.model.BaseEntity;

public class EntityResult<T extends BaseEntity>{ 
	
	private String message;
	private T entity;
	
	public EntityResult(String message, T entity){
		this.entity = entity;
		this.message = message;
	}
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getEntity() {
		return entity;
	}
	public void setEntity(T entity) {
		this.entity = entity;
	}
	
}
